package com.jy.api.dao;

import com.jy.api.domain.OrderItem;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by lihu on 2017/12/12.
 */
public interface OrderItemDao extends CrudRepository<OrderItem, String> {


    /**
     * 获取时间段内商品销售信息
     *
     * @param storeId
     * @param start
     * @param end
     * @return
     */
    List<Map<String, Object>> getProductTotal(String storeId, List<String> typeIds,
                                              String productId, Date start, Date end);


}
